<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.wenwu.common.utils.Status.AttachmentFrom"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>文化面貌表单</title>
<script type="text/javascript" src="${path}/js/scripts/bootstart.js"></script>
<link rel="stylesheet" type="text/css" href="${path}/css/focus.css" />
</head>
<body>
	<script type="text/plain" id="myEditorFile"></script>
	<form id="cultureForm" method="post">
		<div style="display:none;">
			<input name="mCultureId" class="mini-textbox" />
			<input id="mRelicsId" name="mRelicsId" class="mini-textbox" />
			<input id="relicsName" name="relicsName" class="mini-textbox" />
		</div>
		<div class="form_nav">
			<table width="100%" cellpadding="4" cellspacing="0">
				<tr>
					<td width="10%" class="xx_bt nonebor">系统编号:</td>
					<td width="24%" class="xx_type nonebor"><input name="systemId" 
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span 
						class="required_cls">*</span></td>
					<td width="10%" class="xx_bt nonebor">人文类型:</td>
					<td class="xx_type nonebor"><input class="mini-combobox" name="humanityType"
						showNullItem="true" url="${path}/mgr/dictionary/showListByKey?dicKey=23"
						nullItemText="请选择人文类型"  style="width: 90%;"
						textField="dicValue" valueField="dicValue" allowInput="false" /><span
						class="required_cls">*</span></td>
					<td width="10%" class="xx_bt nonebor">人文:</td>
					<td width="24%" class="xx_type  nonebor"><input name="humanity" 
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span 
						class="required_cls">*</span></td>
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">人物传略:</td>
					<td width="23%" class="xx_type  "><input name="figure"
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">地域类型:</td>
					<td class="xx_type"><input class="mini-combobox" name="regionType"
						showNullItem="true" url="${path}/mgr/dictionary/showListByKey?dicKey=24"
						nullItemText="请选择地域类型"  style="width: 90%;"
						textField="dicValue" valueField="dicValue" allowInput="false" /><span
						class="required_cls">*</span></td>
					<td width="10%" class="xx_bt ">地域:</td>
					<td width="24%" class="xx_type  "><input name="region" 
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls">*</span></td>
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">功能类别:</td>
					<td width="23%" class="xx_type  ">
						<div id="combobox2" class="mini-combobox" name="functionType" 
							style="width:90%;"  popupWidth="230" textField="dicValue" valueField="dicValue"
					    	url="${path}/mgr/dictionary/showListByKey?dicKey=25"  multiSelect="true"  showClose="false" oncloseclick="onCloseClick" >     
						    <div property="columns">
						        <div header="类型" field="dicValue"></div>
						    </div>
						</div>
											
						<span class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">实际用途:</td>
					<td width="23%" class="xx_type  "><input name="realUse"
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">成型工艺:</td>
					<td width="24%" class="xx_type  "><input name="moulding" 
						style="width: 90%;" class="mini-textbox"vtype="maxLength:100" /><span 
						class="required_cls">*</span></td>
				</tr>
				<tr>

					<td width="10%" class="xx_bt ">流派:</td>
					<td width="23%" class="xx_type  "><input name="sect"
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">绘画技法:</td>
					<td width="23%" class="xx_type  "><input name="painting"
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">装饰生成工艺:</td>
					<td width="24%" class="xx_type  "><input name="decorateProcess" 
						style="width: 90%;" class="mini-textbox"vtype="maxLength:100" /><span 
						class="required_cls">*</span></td>
				</tr>
				<tr>
					
					<td width="10%" class="xx_bt ">文字生成工艺:</td>
					<td width="23%" class="xx_type  "><input name="wordProcess"
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">装饰形式类别:</td>
					<td width="23%" class="xx_type  ">
						<div id="combobox2" class="mini-combobox" name="decorateStyleType"
							style="width:90%;"  popupWidth="230" textField="dicValue" valueField="dicValue"
					    	url="${path}/mgr/dictionary/showListByKey?dicKey=26"  multiSelect="true"  showClose="false" oncloseclick="onCloseClick" >     
						    <div property="columns">
						        <div header="类型" field="dicValue"></div>
						    </div>
						</div>
						<span class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">装饰题材类别:</td>
					<td width="24%" class="xx_type  "><input name="decorateThemeType" 
						style="width: 90%;" class="mini-textbox"vtype="maxLength:100" /><span 
						class="required_cls">*</span></td>
				</tr>
				<tr>
					
					<td width="10%" class="xx_bt ">装饰组合方式:</td>
					<td width="23%" class="xx_type  ">
						<div id="combobox2" class="mini-combobox" name="decorateStyle"
							style="width:90%;"  popupWidth="230" textField="dicValue" valueField="dicValue"
					    	url="${path}/mgr/dictionary/showListByKey?dicKey=27"  multiSelect="true"  showClose="false" oncloseclick="onCloseClick" >     
						    <div property="columns">
						        <div header="类型" field="dicValue"></div>
						    </div>
						</div>
						<span class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">装饰部位:</td>
					<td width="23%" class="xx_type  "><input name="decorateRegion"
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">形态描述:</td>
					<td width="24%" class="xx_type  "><input name="morphologie" 
						style="width: 90%;" class="mini-textbox"vtype="maxLength:100" /><span 
						class="required_cls">*</span></td>
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">题识类别:</td>
					<td width="23%" class="xx_type  ">
						<div id="combobox2" class="mini-combobox" name="generalType"
							style="width:90%;"  popupWidth="230" textField="dicValue" valueField="dicValue"
					    	url="${path}/mgr/dictionary/showListByKey?dicKey=28"  multiSelect="true"  showClose="false" oncloseclick="onCloseClick" >     
						    <div property="columns">
						        <div header="类型" field="dicValue"></div>
						    </div>
						</div>
						<span class="required_cls"> </span></td>
					<td width="23%" class="xx_type  " colspan ="4"></td>
					
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">题识内容:</td>
					<td width="90%" class="xx_type  " colspan="3"><input name="generalContent"
						style="width: 80%;" class="mini-textbox" vtype="maxLength:100" />
						<!-- 附件上传开始 --> <a class="mini-button" iconCls="icon-upload"
						onclick="upFiles('<%=AttachmentFrom.RELICS_M_CULTRURE_01%>','showfiles')">浏览文件</a>
						<!-- 附件上传结束-->	
					</td>
					<td class="xx_type" id="showfiles" colspan = "2">
					<c:if test="${param.flag=='edit'}">
							<c:if test="${!empty attachments}">
								<c:forEach var="att" items="${attachments}">
									<c:if test="${att.attachmentOwner == 71}">
									<input type="hidden" value="${att.attachmentPath}"
										name="filePath">
									<input type="hidden" value="${att.attachmentName}"
										name="fileName">
									<input type="hidden" value="${att.attachmentOwner}"
										name="attachmentOwner">
									<a target="_blank" href="${att.attachmentPath}" class="views">${att.attachmentName}</a>
									<br />
									</c:if>
								</c:forEach>
							</c:if>
						</c:if>
					</td>
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">文字种类:</td>
					<td width="24%" class="xx_type  ">
						<input class="mini-combobox" name="wordType"
						showNullItem="true" url="${path}/mgr/dictionary/showListByKey?dicKey=29"
						nullItemText="请选择文字种类"  style="width: 90%;"
						textField="dicValue" valueField="dicValue" allowInput="false" />
						<span class="required_cls">*</span></td>
					<td width="10%" class="xx_bt ">字体类别:</td>
					<td width="23%" class="xx_type  ">
						<div id="combobox2" class="mini-combobox" name="font"
							style="width:90%;"  popupWidth="230" textField="dicValue" valueField="dicValue" 
					    	url="${path}/mgr/dictionary/showListByKey?dicKey=28"  multiSelect="true"  showClose="false" oncloseclick="onCloseClick" >     
						    <div property="columns">
						        <div header="类型" field="dicValue"></div>
						    </div>
						</div>
						<span class="required_cls"> </span></td>
					<td width="10%" class="xx_bt ">字迹颜色:</td>
					<td width="23%" class="xx_type  "><input name="fontColor"
						style="width: 90%;" class="mini-textbox" vtype="maxLength:100" /><span
						class="required_cls"> </span></td>
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">内容及释文:</td>
					<td width="90%" class="xx_type  " colspan="3"><input name="content" 
						style="width: 80%;" class="mini-textbox"/>
						<!-- 附件上传开始 --> <a class="mini-button" iconCls="icon-upload"
						onclick="upFiles('<%=AttachmentFrom.RELICS_M_CULTRURE_02%>','showfiles2')">浏览文件</a>
						<!-- 附件上传结束-->	
					</td>
					<td class="xx_type" id="showfiles2" colspan = "2">
					<c:if test="${param.flag=='edit'}">
							<c:if test="${!empty attachments}">
								<c:forEach var="att" items="${attachments}">
									<c:if test="${att.attachmentOwner == 72}">
									<input type="hidden" value="${att.attachmentPath}"
										name="filePath">
									<input type="hidden" value="${att.attachmentName}"
										name="fileName">
									<input type="hidden" value="${att.attachmentOwner}"
										name="attachmentOwner">
									<a target="_blank" href="${att.attachmentPath}" class="views">${att.attachmentName}</a>
									<br />
									</c:if>
								</c:forEach>
							</c:if>
						</c:if>
					</td>
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">文化价值及研究成果:</td>
					<td width="90%" class="xx_type  " colspan="3"><input name="cultureValue"
						style="width:80%;" class="mini-textbox"/><span
						class="required_cls"> </span>
						<!-- 附件上传开始 --> <a class="mini-button" iconCls="icon-upload"
						onclick="upFiles('<%=AttachmentFrom.RELICS_M_CULTRURE_03%>','showfiles3')">浏览文件</a>
						<!-- 附件上传结束-->
					</td>
					<td class="xx_type" id="showfiles3" colspan = "2">
					<c:if test="${param.flag=='edit'}">
							<c:if test="${!empty attachments}">
								<c:forEach var="att" items="${attachments}">
									<c:if test="${att.attachmentOwner == 73}">
									<input type="hidden" value="${att.attachmentPath}"
										name="filePath">
									<input type="hidden" value="${att.attachmentName}"
										name="fileName">
									<input type="hidden" value="${att.attachmentOwner}"
										name="attachmentOwner">
									<a target="_blank" href="${att.attachmentPath}" class="views">${att.attachmentName}</a>
									<br />
									</c:if>
								</c:forEach>
							</c:if>
						</c:if>
					</td>
				</tr>
				<tr>
					<td width="10%" class="xx_bt ">备注:</td>
					<td width="90%" class="xx_type  " colspan="3"><input name="remark"
						style="width: 80%;" class="mini-textbox"/><spanclass="required_cls"> </span>
						<!-- 附件上传开始 --> <a class="mini-button" iconCls="icon-upload"
						onclick="upFiles('<%=AttachmentFrom.RELICS_M_CULTRURE_04%>','showfiles4')">浏览文件</a>
						<!-- 附件上传结束-->
					</td>
					<td class="xx_type" id="showfiles4" colspan = "2">
					<c:if test="${param.flag=='edit'}">
							<c:if test="${!empty attachments}">
								<c:forEach var="att" items="${attachments}">
									<c:if test="${att.attachmentOwner == 74}">
									<input type="hidden" value="${att.attachmentPath}"
										name="filePath">
									<input type="hidden" value="${att.attachmentName}"
										name="fileName">
									<input type="hidden" value="${att.attachmentOwner}"
										name="attachmentOwner">
									<a target="_blank" href="${att.attachmentPath}" class="views">${att.attachmentName}</a>
									<br />
									</c:if>
								</c:forEach>
							</c:if>
						</c:if>
					</td>
				</tr>
			</table>
		</div>
		<div style="text-align: center; padding: 10px;">
			<c:if test="${param.flag!='show'}">
				<a class="mini-button" onclick="addform.saveData" id="sub_button"
					iconCls="icon-save" style="width: 60px; margin-right: 20px;">保存</a>
			</c:if>
			<a iconCls="icon-cancel" class="mini-button" onclick="$.form.onClose()" style="width: 60px;">取消</a>
		</div>
	</form>
</body>
<script type="text/javascript" src="${path}/js/scripts/dataform.js"></script>
<script type="text/javascript" charset="utf-8" src="${path}/js/scripts/swfupload/swfupload.js"></script>
<script type="text/javascript" src="${path}/js/scripts/plugin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="${path}/js/scripts/plugin/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="${path}/js/upload.js"></script>
<script type="text/javascript">
	var doc = $(document);
	$(function() {
		$.form.init(); //初始化表单
		window.addform = {};
		addform.saveData = function() {
			var form = new mini.Form("#cultureForm");
			form.validate();
			if (form.isValid() == false) {
				return;
			}
			$.form.saveData({
				url : "${path}/mgr/mculture/savecultureform",
				showMsg : true,//是否显示提示信息（返回参数必须是msg，json类型数据）
				id : "cultureForm"
			});
		};
		
	});
	//页面初始化时，执行该函数资源类型
	window.onload = function() {
		mini.get("mRelicsId").setValue("${param.mRelicsId}");
		mini.get("relicsName").setValue(decodeURI("${param.relicsName}"));
		
	};
</script>
</html>